"""
启动脚本
"""
import uvicorn
from core.config import settings

if __name__ == "__main__":
    print("=" * 60)
    print(f"🚀 {settings.APP_NAME} v{settings.APP_VERSION}")
    print("=" * 60)
    print(f"📝 API 文档: http://{settings.HOST}:{settings.PORT}/docs")
    print(f"📖 ReDoc 文档: http://{settings.HOST}:{settings.PORT}/redoc")
    print(f"🗄️  数据库: PostgreSQL")
    print(f"🔧 环境: {'开发模式' if settings.DEBUG else '生产模式'}")
    print("=" * 60)
    print()
    
    uvicorn.run(
        "main:app",
        host=settings.HOST,
        port=settings.PORT,
        reload=settings.DEBUG,
        log_level="info"
    )

